package com.byxy.demo2.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byxy.demo2.dao.ItemsDao;
import com.byxy.demo2.entity.Items;
import com.byxy.demo2.service.ItemsService;

@Service
@Transactional
public class ItemsServiceImpl implements ItemsService {
	@Autowired
	private ItemsDao itemsDao;
	@Override
	public void add(Items item) {
		// TODO Auto-generated method stub
		itemsDao.add(item);
	}
	
	

	@Override
	public List<Items> findAll() {
		// TODO Auto-generated method stub
		return itemsDao.findAll();
	}

}
